

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>Label (lv_label) &mdash; LittlevGL 6.1.2 documentation</title>
  

  
  
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
  
  
  

  
  <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
        <script src="../_static/language_data.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
  <link rel="stylesheet" href="../_static/css/fontawesome.min.css" type="text/css" />
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="LED (lv_led)" href="led.html" />
    <link rel="prev" title="Keyboard (lv_kb)" href="kb.html" />
 
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-78811084-3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-78811084-3');
</script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html">
          

          
            
            <img src="../_static/white_white_lvgl_full_logo.svg" class="logo" alt="Logo"/>
          
          </a>

          
            
            
              <div class="version">
                6.1.2
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../get-started/index.html">Get started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../get-started/live-demo.html">Live demos</a></li>
<li class="toctree-l2"><a class="reference internal" href="../get-started/pc-simulator.html">Simulator on PC</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../get-started/pc-simulator.html#select-an-ide">Select an IDE</a></li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/pc-simulator.html#set-up-eclipse-cdt">Set-up Eclipse CDT</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/pc-simulator.html#install-eclipse-cdt">Install Eclipse CDT</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/pc-simulator.html#install-sdl-2">Install SDL 2</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/pc-simulator.html#pre-configured-project">Pre-configured project</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/pc-simulator.html#add-the-pre-configured-project-to-eclipse-cdt">Add the pre-configured project to Eclipse CDT</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/pc-simulator.html#compile-and-run">Compile and Run</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../get-started/quick-overview.html">Quick overview</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../get-started/quick-overview.html#add-littlevgl-into-your-project">Add LittlevGL into your project</a></li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/quick-overview.html#learn-the-basics">Learn the basics</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#objects-widgets">Objects (Widgets)</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#styles">Styles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#events">Events</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/quick-overview.html#examples">Examples</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#button-with-label">Button with label</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#button-with-styles">Button with styles</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#slider-and-object-alignment">Slider and object alignment</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#list-and-themes">List and themes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/quick-overview.html#use-littlevgl-from-micropython">Use LittlevGL from Micropython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/quick-overview.html#contributing">Contributing</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../get-started/micropython.html">Micropython</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../get-started/micropython.html#what-is-micropython">What is Micropython?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#highlights-of-micropython">Highlights of Micropython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/micropython.html#why-micropython-littlevgl">Why Micropython + LittlevGL?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#here-are-some-advantages-of-using-littlevgl-in-micropython">Here are some advantages of using LittlevGL in Micropython:</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#micropython-littlevgl-could-be-used-for">Micropython + LittlevGL could be used for:</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/micropython.html#so-what-does-it-look-like">So what does it look like?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#a-simple-example">A simple example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/micropython.html#how-can-i-use-it">How can I use it?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#online-simulator">Online Simulator</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#pc-simulator">PC Simulator</a></li>
<li class="toctree-l4"><a class="reference internal" href="../get-started/micropython.html#embedded-platform">Embedded platform</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../get-started/micropython.html#where-can-i-find-more-information">Where can I find more information?</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../porting/index.html">Porting</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../porting/sys.html">System overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="../porting/project.html">Set-up a project</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/project.html#get-the-library">Get the library</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/project.html#configuration-file">Configuration file</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/project.html#initialization">Initialization</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../porting/display.html">Display interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/display.html#display-buffer">Display buffer</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/display.html#display-driver">Display driver</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/display.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../porting/indev.html">Input device interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/indev.html#types-of-input-devices">Types of input devices</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../porting/indev.html#touchpad-mouse-or-any-pointer">Touchpad, mouse or any pointer</a></li>
<li class="toctree-l4"><a class="reference internal" href="../porting/indev.html#keypad-or-keyboard">Keypad or keyboard</a></li>
<li class="toctree-l4"><a class="reference internal" href="../porting/indev.html#encoder">Encoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../porting/indev.html#button">Button</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../porting/indev.html#other-features">Other features</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/indev.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../porting/tick.html">Tick interface</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/tick.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../porting/task-handler.html">Task Handler</a></li>
<li class="toctree-l2"><a class="reference internal" href="../porting/sleep.html">Sleep management</a></li>
<li class="toctree-l2"><a class="reference internal" href="../porting/os.html">Operating system and interrupts</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/os.html#tasks-and-threads">Tasks and threads</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/os.html#interrupts">Interrupts</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../porting/log.html">Logging</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../porting/log.html#log-level">Log level</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/log.html#logging-with-printf">Logging with printf</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/log.html#custom-log-function">Custom log function</a></li>
<li class="toctree-l3"><a class="reference internal" href="../porting/log.html#add-logs">Add logs</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../overview/index.html">Overview</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../overview/object.html">Objects</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/object.html#object-attributes">Object attributes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#basic-attributes">Basic attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#specific-attributes">Specific attributes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/object.html#object-s-working-mechanisms">Object’s working mechanisms</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#parent-child-structure">Parent-child structure</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#moving-together">Moving together</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#visibility-only-on-the-parent">Visibility only on the parent</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#create-delete-objects">Create - delete objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/object.html#screen-the-most-basic-parent">Screen – the most basic parent</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/layer.html">Layers</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/layer.html#order-of-creation">Order of creation</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/layer.html#bring-to-the-foreground">Bring to the foreground</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/layer.html#top-and-sys-layers">Top and sys layers</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/event.html">Events</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/event.html#event-types">Event types</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/event.html#generic-events">Generic events</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/event.html#special-events">Special events</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/event.html#custom-data">Custom data</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/event.html#send-events-manually">Send events manually</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/style.html">Styles</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#use-the-styles">Use the styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#inherit-styles">Inherit styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#style-properties">Style properties</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#common-properties">Common properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#body-style-properties">Body style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#text-style-properties">Text style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#image-style-properties">Image style properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#line-style-properties">Line style properties</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#built-in-styles">Built-in styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#create-new-styles">Create new styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#style-animations">Style animations</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#style-example">Style example</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/style.html#themes">Themes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/style.html#live-update">Live update</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/indev.html">Input devices</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/indev.html#pointers">Pointers</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/indev.html#keypad-and-encoder">Keypad and encoder</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/indev.html#groups">Groups</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/indev.html#complete-example">Complete example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/indev.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/indev.html#input-device">Input device</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/indev.html#id1">Groups</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/display.html">Displays</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#using-only-one-display">Using only one display</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#mirror-display">Mirror display</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#split-image">Split image</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#screens">Screens</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#opaque-screen">Opaque screen</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#features-of-displays">Features of displays</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#inactivity">Inactivity</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#colors">Colors</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#convert-color">Convert color</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#swap-16-colors">Swap 16 colors</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#create-and-mix-colors">Create and mix colors</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#opacity">Opacity</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#built-in-colors">Built-in colors</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/display.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#display">Display</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/display.html#id1">Colors</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/font.html">Fonts</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#unicode-support">Unicode support</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#built-in-fonts">Built-in fonts</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#special-features">Special features</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/font.html#bidirectional-support">Bidirectional support</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/font.html#subpixel-rendering">Subpixel rendering</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/font.html#compress-fonts">Compress fonts</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#add-new-font">Add new font</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#add-new-symbols">Add new symbols</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/font.html#add-a-new-font-engine">Add a new font engine</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/image.html">Images</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#store-images">Store images</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#variables">Variables</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#files">Files</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#color-formats">Color formats</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#add-and-use-images">Add and use images</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#online-converter">Online converter</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#manually-create-an-image">Manually create an image</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#use-images">Use images</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#image-decoder">Image decoder</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#custom-image-formats">Custom image formats</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#register-an-image-decoder">Register an image decoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#manually-use-an-image-decoder">Manually use an image decoder</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#image-caching">Image caching</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#cache-size">Cache size</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#value-of-images">Value of images</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#memory-usage">Memory usage</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#clean-the-cache">Clean the cache</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../overview/image.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#id1">Image decoder</a></li>
<li class="toctree-l4"><a class="reference internal" href="../overview/image.html#image-cache">Image cache</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/file-system.html">File system</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/file-system.html#add-a-driver">Add a driver</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/file-system.html#usage-example">Usage example</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/file-system.html#use-drivers-for-images">Use drivers for images</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/file-system.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/animation.html">Animations</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/animation.html#create-an-animation">Create an animation</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/animation.html#animation-path">Animation path</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/animation.html#speed-vs-time">Speed vs time</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/animation.html#delete-animations">Delete animations</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/animation.html#api">API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="../overview/animation.html#input-device">Input device</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/task.html">Tasks</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#create-a-task">Create a task</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#ready-and-reset">Ready and Reset</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#set-parameters">Set parameters</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#one-shot-tasks">One-shot tasks</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#measure-idle-time">Measure idle time</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#asynchronous-calls">Asynchronous calls</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/task.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../overview/drawing.html">Drawing</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../overview/drawing.html#buffering-types">Buffering types</a></li>
<li class="toctree-l3"><a class="reference internal" href="../overview/drawing.html#mechanism-of-screen-refreshing">Mechanism of screen refreshing</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Object types (Widgets)</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="obj.html">Base object (lv_obj)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="obj.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="obj.html#coordinates">Coordinates</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#parents-and-children">Parents and children</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#screens">Screens</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#layers">Layers</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#style">Style</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#events">Events</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#attributes">Attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#opa-scale">Opa scale</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#protect">Protect</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#groups">Groups</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#extended-click-area">Extended click area</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="obj.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="obj.html#id1">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="obj.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="obj.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="obj.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="obj.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="obj.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="arc.html">Arc (lv_arc)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="arc.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="arc.html#angles">Angles</a></li>
<li class="toctree-l4"><a class="reference internal" href="arc.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="arc.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="arc.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="arc.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="arc.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="arc.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="arc.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="arc.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="bar.html">Bar (lv_bar)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="bar.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="bar.html#value-and-range">Value and range</a></li>
<li class="toctree-l4"><a class="reference internal" href="bar.html#symmetrical">Symmetrical</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="bar.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="bar.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="bar.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="bar.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="bar.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="bar.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="bar.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="btn.html">Button (lv_btn)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="btn.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="btn.html#states">States</a></li>
<li class="toctree-l4"><a class="reference internal" href="btn.html#toggle">Toggle</a></li>
<li class="toctree-l4"><a class="reference internal" href="btn.html#layout-and-fit">Layout and Fit</a></li>
<li class="toctree-l4"><a class="reference internal" href="btn.html#ink-effect">Ink effect</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="btn.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="btn.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="btn.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="btn.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="btn.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="btn.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="btn.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="btnm.html">Button matrix (lv_btnm)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#button-s-text">Button’s text</a></li>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#control-buttons">Control buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#one-toggle">One toggle</a></li>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#recolor">Recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="btnm.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="btnm.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="calendar.html">Calendar (lv_calendar)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#current-date">Current date</a></li>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#shown-date">Shown date</a></li>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#highlighted-days">Highlighted days</a></li>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#name-of-the-days">Name of the days</a></li>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#name-of-the-months">Name of the months</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="calendar.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="calendar.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="canvas.html">Canvas (lv_canvas)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#buffer">Buffer</a></li>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#palette">Palette</a></li>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#drawing">Drawing</a></li>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#rotate">Rotate</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="canvas.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="canvas.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="cb.html">Checkbox (lv_cb)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="cb.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="cb.html#text">Text</a></li>
<li class="toctree-l4"><a class="reference internal" href="cb.html#check-uncheck">Check/Uncheck</a></li>
<li class="toctree-l4"><a class="reference internal" href="cb.html#inactive">Inactive</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="cb.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="cb.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="cb.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="cb.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="cb.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="cb.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="cb.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="chart.html">Chart (lv_chart)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="chart.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="chart.html#data-series">Data series</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#series-type">Series’ type</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#modify-the-data">Modify the data</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#update-modes">Update modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#number-of-points">Number of points</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#vertical-range">Vertical range</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#division-lines">Division lines</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#series-appearance">Series’ appearance</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#tick-marks-and-labels">Tick marks and labels</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="chart.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="chart.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="chart.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="chart.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="chart.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="chart.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="chart.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="cont.html">Container (lv_cont)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="cont.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="cont.html#layout">Layout</a></li>
<li class="toctree-l4"><a class="reference internal" href="cont.html#autofit">Autofit</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="cont.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="cont.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="cont.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="cont.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="cont.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="cont.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="cont.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="cpicker.html">Color picker (lv_cpicker)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="cpicker.html#types-of-color-pickers">Types of color pickers</a></li>
<li class="toctree-l4"><a class="reference internal" href="cpicker.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#example">Example</a></li>
<li class="toctree-l3"><a class="reference internal" href="cpicker.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="ddlist.html">Drop-down list (lv_ddlist)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#set-options">Set options</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#get-selected-option">Get selected option</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#align-the-options">Align the options</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#height-and-width">Height and width</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#animation-time">Animation time</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#decoration-arrow">Decoration arrow</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#manually-open-close">Manually open/close</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#stay-open">Stay open</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="ddlist.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="ddlist.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="gauge.html">Gauge (lv_gauge)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#scale">Scale</a></li>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#needles">Needles</a></li>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#range">Range</a></li>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#critical-value">Critical value</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="gauge.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="gauge.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="img.html">Image (lv_img)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="img.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="img.html#image-source">Image source</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#label-as-an-image">Label as an image</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#transparency">Transparency</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#palette-and-alpha-index">Palette and Alpha index</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#recolor">Recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#auto-size">Auto-size</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#mosaic">Mosaic</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#offset">Offset</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="img.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="img.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="img.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="img.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="img.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="img.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="img.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="imgbtn.html">Image button (lv_imgbtn)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="imgbtn.html#image-sources">Image sources</a></li>
<li class="toctree-l4"><a class="reference internal" href="imgbtn.html#states">States</a></li>
<li class="toctree-l4"><a class="reference internal" href="imgbtn.html#toggle">Toggle</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="imgbtn.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="imgbtn.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="imgbtn.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="kb.html">Keyboard (lv_kb)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="kb.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="kb.html#modes">Modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="kb.html#assign-text-area">Assign Text area</a></li>
<li class="toctree-l4"><a class="reference internal" href="kb.html#new-keymap">New Keymap</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="kb.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="kb.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="kb.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="kb.html#examples">Examples</a><ul>
<li class="toctree-l4"><a class="reference internal" href="kb.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="kb.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="kb.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Label (lv_label)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#set-text">Set text</a></li>
<li class="toctree-l4"><a class="reference internal" href="#line-break">Line break</a></li>
<li class="toctree-l4"><a class="reference internal" href="#long-modes">Long modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="#text-align">Text align</a></li>
<li class="toctree-l4"><a class="reference internal" href="#draw-background">Draw background</a></li>
<li class="toctree-l4"><a class="reference internal" href="#text-recolor">Text recolor</a></li>
<li class="toctree-l4"><a class="reference internal" href="#very-long-texts">Very long texts</a></li>
<li class="toctree-l4"><a class="reference internal" href="#symbols">Symbols</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="led.html">LED (lv_led)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="led.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="led.html#brightness">Brightness</a></li>
<li class="toctree-l4"><a class="reference internal" href="led.html#toggle">Toggle</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="led.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="led.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="led.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="led.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="led.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="led.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="led.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="line.html">Line (lv_line)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="line.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="line.html#set-points">Set points</a></li>
<li class="toctree-l4"><a class="reference internal" href="line.html#auto-size">Auto-size</a></li>
<li class="toctree-l4"><a class="reference internal" href="line.html#invert-y">Invert y</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="line.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="line.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="line.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="line.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="line.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="line.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="line.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="list.html">List (lv_list)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="list.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="list.html#add-buttons">Add buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#delete-buttons">Delete buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#manual-navigation">Manual navigation</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#layout">Layout</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#edge-flash">Edge flash</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#scroll-propagation">Scroll propagation</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="list.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="list.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="list.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="list.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="list.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="list.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="list.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="lmeter.html">Line meter (lv_lmeter)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="lmeter.html#set-value">Set value</a></li>
<li class="toctree-l4"><a class="reference internal" href="lmeter.html#range-and-angles">Range and Angles</a></li>
<li class="toctree-l4"><a class="reference internal" href="lmeter.html#angle-offset">Angle offset</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="lmeter.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="lmeter.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="lmeter.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="mbox.html">Message box (lv_mbox)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mbox.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="mbox.html#set-text">Set text</a></li>
<li class="toctree-l4"><a class="reference internal" href="mbox.html#add-buttons">Add buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="mbox.html#auto-close">Auto-close</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="mbox.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="mbox.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="mbox.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="mbox.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="mbox.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="mbox.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="page.html">Page (lv_page)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="page.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="page.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#glue-object">Glue object</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#focus-object">Focus object</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#manual-navigation">Manual navigation</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#edge-flash">Edge flash</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#scroll-propagation">Scroll propagation</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#scrollable-api">Scrollable API</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#notes">Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="page.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="page.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="page.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="page.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="page.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="page.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="preload.html">Preloader (lv_preload)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="preload.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="preload.html#arc-length">Arc length</a></li>
<li class="toctree-l4"><a class="reference internal" href="preload.html#spinning-speed">Spinning speed</a></li>
<li class="toctree-l4"><a class="reference internal" href="preload.html#spin-types">Spin types</a></li>
<li class="toctree-l4"><a class="reference internal" href="preload.html#spin-direction">Spin direction</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="preload.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="preload.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="preload.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="preload.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="preload.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="preload.html#id1">MicroPython</a></li>
<li class="toctree-l4"><a class="reference internal" href="preload.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="preload.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="roller.html">Roller (lv_roller)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="roller.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="roller.html#set-options">Set options</a></li>
<li class="toctree-l4"><a class="reference internal" href="roller.html#get-selected-option">Get selected option</a></li>
<li class="toctree-l4"><a class="reference internal" href="roller.html#align-the-options">Align the options</a></li>
<li class="toctree-l4"><a class="reference internal" href="roller.html#height-and-width">Height and width</a></li>
<li class="toctree-l4"><a class="reference internal" href="roller.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="roller.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="roller.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="roller.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="roller.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="roller.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="roller.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="roller.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="slider.html">Slider (lv_slider)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="slider.html#overview">Overview</a></li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#value-and-range">Value and range</a><ul>
<li class="toctree-l4"><a class="reference internal" href="slider.html#symmetrical">Symmetrical</a></li>
<li class="toctree-l4"><a class="reference internal" href="slider.html#knob-placement">Knob placement</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="slider.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="slider.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="slider.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="spinbox.html">Spinbox (lv_spinbox)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="spinbox.html#set-format">Set format</a></li>
<li class="toctree-l4"><a class="reference internal" href="spinbox.html#value-and-ranges">Value and ranges</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="spinbox.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="spinbox.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#api">API</a></li>
<li class="toctree-l3"><a class="reference internal" href="spinbox.html#id1">Example</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="sw.html">Switch (lv_sw)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="sw.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="sw.html#change-state">Change state</a></li>
<li class="toctree-l4"><a class="reference internal" href="sw.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="sw.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="sw.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="sw.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="sw.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="sw.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="table.html">Table (lv_table)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="table.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="table.html#rows-and-columns">Rows and Columns</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#width-and-height">Width and Height</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#set-cell-value">Set cell value</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#align">Align</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#cell-type">Cell type</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#merge-cells">Merge cells</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#crop-text">Crop text</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#scroll">Scroll</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="table.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="table.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="table.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="table.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="table.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#id1">MicroPython</a></li>
<li class="toctree-l4"><a class="reference internal" href="table.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="table.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tabview.html">Tabview (lv_tabview)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#adding-tab">Adding tab</a></li>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#change-tab">Change tab</a></li>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#tab-button-s-position">Tab button’s position</a></li>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#hide-the-tabs">Hide the tabs</a></li>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#animation-time">Animation time</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="tabview.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tabview.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="ta.html">Text area (lv_ta)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="ta.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ta.html#add-text">Add text</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#placeholder">Placeholder</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#delete-character">Delete character</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#move-the-cursor">Move the cursor</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#cursor-types">Cursor types</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#one-line-mode">One line mode</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#password-mode">Password mode</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#text-align">Text align</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#accepted-characters">Accepted characters</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#max-text-length">Max text length</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#very-long-texts">Very long texts</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#select-text">Select text</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#scroll-propagation">Scroll propagation</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#edge-flash">Edge flash</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="ta.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="ta.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="ta.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="ta.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="ta.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="ta.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="ta.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tileview.html">Tile view (lv_tileview)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#valid-positions">Valid positions</a></li>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#add-element">Add element</a></li>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#set-tile">Set tile</a></li>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#animation-time">Animation time</a></li>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#edge-flash">Edge flash</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#styles">Styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="tileview.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tileview.html#api">API</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="win.html">Window (lv_win)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="win.html#overview">Overview</a><ul>
<li class="toctree-l4"><a class="reference internal" href="win.html#title">Title</a></li>
<li class="toctree-l4"><a class="reference internal" href="win.html#control-buttons">Control buttons</a></li>
<li class="toctree-l4"><a class="reference internal" href="win.html#scrollbars">Scrollbars</a></li>
<li class="toctree-l4"><a class="reference internal" href="win.html#manual-scroll-and-focus">Manual scroll and focus</a></li>
<li class="toctree-l4"><a class="reference internal" href="win.html#layout">Layout</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="win.html#style-usage">Style usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="win.html#events">Events</a></li>
<li class="toctree-l3"><a class="reference internal" href="win.html#keys">Keys</a></li>
<li class="toctree-l3"><a class="reference internal" href="win.html#example">Example</a><ul>
<li class="toctree-l4"><a class="reference internal" href="win.html#c">C</a></li>
<li class="toctree-l4"><a class="reference internal" href="win.html#micropython">MicroPython</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="win.html#api">API</a></li>
</ul>
</li>
</ul>
</li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">LittlevGL</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html">Docs</a> &raquo;</li>
        
          <li><a href="index.html">Object types (Widgets)</a> &raquo;</li>
        
      <li>Label (lv_label)</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            
              <!-- User defined GitHub URL -->
              <a href="https://github.com/littlevgl/docs/blob/master/en/object-types/label.md" class="fa fa-github"> Edit on GitHub</a>
            
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="label-lv-label">
<h1>Label (lv_label)<a class="headerlink" href="#label-lv-label" title="Permalink to this headline">¶</a></h1>
<div class="section" id="overview">
<h2>Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h2>
<p>A label is the basic object type that is used to display text.</p>
<div class="section" id="set-text">
<h3>Set text<a class="headerlink" href="#set-text" title="Permalink to this headline">¶</a></h3>
<p>You can set the text on a label at runtime with <code class="docutils literal notranslate"><span class="pre">lv_label_set_text(label,</span> <span class="pre">&quot;New</span> <span class="pre">text&quot;)</span></code>. It will allocate a buffer dynamically, and the provided string will be copied into that buffer. Therefore, you don’t need to keep the text you pass to <code class="docutils literal notranslate"><span class="pre">lv_label_set_text</span></code> in scope after that function returns.</p>
<p>With <code class="docutils literal notranslate"><span class="pre">lv_label_set_text_fmt(label,</span> <span class="pre">&quot;Value:</span> <span class="pre">%d&quot;,</span> <span class="pre">15)</span></code> <strong>printf formatting</strong> can used to set the text.</p>
<p>Labels are able to show text from a <strong>static character buffer</strong> which is NUL-terminated. To do so, use <code class="docutils literal notranslate"><span class="pre">lv_label_set_static_text(label,</span> <span class="pre">char_array)</span></code>. In this case, the text is not stored in the dynamic memory and the given buffer is used directly instead. This means that the array can’t be a local variable which goes out of scope when the function exits. Constant strings are safe to use with <code class="docutils literal notranslate"><span class="pre">lv_label_set_static_text</span></code> (except when used with <code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_DOT</span></code>, as it modifies the buffer in-place), as they are stored in RO memory, which is always accessible.</p>
<p>You can also use a <strong>raw array</strong> as label text. The array doesn’t have to be <code class="docutils literal notranslate"><span class="pre">\0</span></code> terminated. In this case, the text will be saved to the dynamic memory like with <code class="docutils literal notranslate"><span class="pre">lv_label_set_text</span></code>. To set a raw character array, use the <code class="docutils literal notranslate"><span class="pre">lv_label_set_array_text(label,</span> <span class="pre">char_array,</span> <span class="pre">size)</span></code> function.</p>
</div>
<div class="section" id="line-break">
<h3>Line break<a class="headerlink" href="#line-break" title="Permalink to this headline">¶</a></h3>
<p>Line breaks are handled automatically by the label object. You can use <code class="docutils literal notranslate"><span class="pre">\n</span></code> to make a line break. For example: <code class="docutils literal notranslate"><span class="pre">&quot;line1\nline2\n\nline4&quot;</span></code></p>
</div>
<div class="section" id="long-modes">
<h3>Long modes<a class="headerlink" href="#long-modes" title="Permalink to this headline">¶</a></h3>
<p>By default, the width of the label object automatically expands to the text size. Otherwise, the text can be manipulated according to several long mode policies:</p>
<ul class="simple">
<li><p><strong>LV_LABEL_LONG_EXPAND</strong> - Expand the object size to the text size (Default)</p></li>
<li><p><strong>LV_LABEL_LONG_BREAK</strong> - Keep the object width, break (wrap) the too long lines and expand the object height</p></li>
<li><p><strong>LV_LABEL_LONG_DOT</strong> - Keep the object size, break the text and write dots in the last line (<strong>not supported when using <code class="docutils literal notranslate"><span class="pre">lv_label_set_static_text</span></code></strong>)</p></li>
<li><p><strong>LV_LABEL_LONG_SROLL</strong> - Keep the size and scroll the label back and forth</p></li>
<li><p><strong>LV_LABEL_LONG_SROLL_CIRC</strong> - Keep the size and scroll the label circularly</p></li>
<li><p><strong>LV_LABEL_LONG_CROP</strong> - Keep the size and crop the text out of it</p></li>
</ul>
<p>You can specify the long mode with <code class="docutils literal notranslate"><span class="pre">lv_label_set_long_mode(label,</span> <span class="pre">LV_LABEL_LONG_...)</span></code></p>
<p>It’s important to note that, when a label is created and its text is set, the label’s size already expanded to the text size.
In addition with the default <code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_EXPAND</span></code>, <em>long mode</em> <code class="docutils literal notranslate"><span class="pre">lv_obj_set_width/height/size()</span></code> has no effect.
So you need to change the <em>long mode</em> first and then set the size with  <code class="docutils literal notranslate"><span class="pre">lv_obj_set_width/height/size()</span></code>.</p>
<p>Another important note is that <strong><code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_DOT</span></code> manipulates the text buffer in-place</strong> in order to add/remove the dots. When <code class="docutils literal notranslate"><span class="pre">lv_label_set_text</span></code> or <code class="docutils literal notranslate"><span class="pre">lv_label_set_array_text</span></code> are used, a separate buffer is allocated and this implementation detail is unnoticed. This is not the case with <code class="docutils literal notranslate"><span class="pre">lv_label_set_static_text</span></code>! <strong>The buffer you pass to <code class="docutils literal notranslate"><span class="pre">lv_label_set_static_text</span></code> must be writable if you plan to use <code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_DOT</span></code>.</strong></p>
</div>
<div class="section" id="text-align">
<h3>Text align<a class="headerlink" href="#text-align" title="Permalink to this headline">¶</a></h3>
<p>The label’s text can be aligned to the left, right or middle with <code class="docutils literal notranslate"><span class="pre">lv_label_set_align(label,</span> <span class="pre">LV_LABEL_ALIGN_LEFT/RIGHT/CENTER)</span></code>.</p>
<p>Vertical alignment is not supported by the label itself; you should place the label inside a larger container and align the whole label object instead.</p>
</div>
<div class="section" id="draw-background">
<h3>Draw background<a class="headerlink" href="#draw-background" title="Permalink to this headline">¶</a></h3>
<p>You can enable to draw a background for the label with <code class="docutils literal notranslate"><span class="pre">lv_label_set_body_draw(label,</span> <span class="pre">draw)</span></code></p>
<p>The background will be larger in every direction with <code class="docutils literal notranslate"><span class="pre">body.padding.top/bottom/left/right</span></code> values.
However, the background is drawn only “virtually” and doesn’t make the label’s logical coordinates any larger.
Therefore when the label is positioned, the label’s coordinates will be taken into account and not background’s.</p>
</div>
<div class="section" id="text-recolor">
<h3>Text recolor<a class="headerlink" href="#text-recolor" title="Permalink to this headline">¶</a></h3>
<p>In the text, you can use commands to recolor parts of the text. For example: <code class="docutils literal notranslate"><span class="pre">&quot;Write</span> <span class="pre">a</span> <span class="pre">#ff0000</span> <span class="pre">red#</span> <span class="pre">word&quot;</span></code>.
This feature can be enabled individually for each label by <code class="docutils literal notranslate"><span class="pre">lv_label_set_recolor()</span></code> function.</p>
<p>Note that, recoloring work only in a single line. Therefore, <code class="docutils literal notranslate"><span class="pre">\n</span></code> should not use in a recolored text or it should be wrapped by <code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_BREAK</span></code> else, the text in the new line won’t be recolored.</p>
</div>
<div class="section" id="very-long-texts">
<h3>Very long texts<a class="headerlink" href="#very-long-texts" title="Permalink to this headline">¶</a></h3>
<p>LittlevGL can efficiently handle very long (&gt; 40k characters) by saving some extra data (~12 bytes) to speed up drawing. To enable this feature, set <code class="docutils literal notranslate"><span class="pre">LV_LABEL_LONG_TXT_HINT</span>&#160;&#160; <span class="pre">1</span></code> in <em>lv_conf.h</em>.</p>
</div>
<div class="section" id="symbols">
<h3>Symbols<a class="headerlink" href="#symbols" title="Permalink to this headline">¶</a></h3>
<p>The labels can display symbols alongside letters (or on their own). Read the <a class="reference internal" href="../overview/font.html"><span class="doc">Font</span></a> section to learn more about the symbols.</p>
</div>
</div>
<div class="section" id="styles">
<h2>Styles<a class="headerlink" href="#styles" title="Permalink to this headline">¶</a></h2>
<p>The Label uses one style which can be set by <code class="docutils literal notranslate"><span class="pre">lv_label_set_style(label,</span> <span class="pre">LV_LABEL_STYLE_MAIN,</span> <span class="pre">&amp;style)</span></code>. From the style the following properties are used:</p>
<ul class="simple">
<li><p>All properties from <code class="docutils literal notranslate"><span class="pre">style.text</span></code></p></li>
<li><p>For background drawing <code class="docutils literal notranslate"><span class="pre">style.body</span></code> properties. <code class="docutils literal notranslate"><span class="pre">padding</span></code> will increase the size only visually, the real object’s size won’t be changed.</p></li>
</ul>
<p>The labels’ default style is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> so they inherit the parent’s style. It’s useful because it allows the parent to set an appropriate text style for any child labels.</p>
</div>
<div class="section" id="events">
<h2>Events<a class="headerlink" href="#events" title="Permalink to this headline">¶</a></h2>
<p>Only the <a class="reference external" href="/overview/event.html#generic-events">Generic events</a> are sent by the object type.</p>
<p>Learn more about <a class="reference internal" href="../overview/event.html"><span class="doc">Events</span></a>.</p>
</div>
<div class="section" id="keys">
<h2>Keys<a class="headerlink" href="#keys" title="Permalink to this headline">¶</a></h2>
<p>No <em>Keys</em> are processed by the object type.</p>
<p>Learn more about <a class="reference internal" href="../overview/indev.html"><span class="doc">Keys</span></a>.</p>
</div>
<div class="section" id="example">
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2>
<div class="section" id="c">
<h3>C<a class="headerlink" href="#c" title="Permalink to this headline">¶</a></h3>
<div class="section" id="label-recoloring-and-scrolling">
<h4>Label recoloring and scrolling<a class="headerlink" href="#label-recoloring-and-scrolling" title="Permalink to this headline">¶</a></h4>
<img alt="Label example in LittlevGL" src="../_images/lv_ex_label_1.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;lvgl/lvgl.h&quot;</span><span class="cp"></span>

<span class="kt">void</span> <span class="nf">lv_ex_label_1</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
    <span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">label1</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_label_set_long_mode</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="n">LV_LABEL_LONG_BREAK</span><span class="p">);</span>     <span class="cm">/*Break the long lines*/</span>
    <span class="n">lv_label_set_recolor</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="nb">true</span><span class="p">);</span>                      <span class="cm">/*Enable re-coloring by commands in the text*/</span>
    <span class="n">lv_label_set_align</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="n">LV_LABEL_ALIGN_CENTER</span><span class="p">);</span>       <span class="cm">/*Center aligned lines*/</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="s">&quot;#000080 Re-color# #0000ff words# #6666ff of a# label &quot;</span>
                              <span class="s">&quot;and  wrap long text automatically.&quot;</span><span class="p">);</span>
    <span class="n">lv_obj_set_width</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="mi">150</span><span class="p">);</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">label1</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">30</span><span class="p">);</span>

    <span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">label2</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_label_set_long_mode</span><span class="p">(</span><span class="n">label2</span><span class="p">,</span> <span class="n">LV_LABEL_LONG_SROLL_CIRC</span><span class="p">);</span>     <span class="cm">/*Circular scroll*/</span>
    <span class="n">lv_obj_set_width</span><span class="p">(</span><span class="n">label2</span><span class="p">,</span> <span class="mi">150</span><span class="p">);</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">label2</span><span class="p">,</span> <span class="s">&quot;It is a circularly scrolling text. &quot;</span><span class="p">);</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">label2</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">30</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="text-shadow">
<h4>Text shadow<a class="headerlink" href="#text-shadow" title="Permalink to this headline">¶</a></h4>
<img alt="Label with shadow in LittlevGL" src="../_images/lv_ex_label_2.png" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;lvgl/lvgl.h&quot;</span><span class="cp"></span>

<span class="kt">void</span> <span class="nf">lv_ex_label_2</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
    <span class="cm">/* Create a style for the shadow*/</span>
    <span class="k">static</span> <span class="n">lv_style_t</span> <span class="n">label_style</span><span class="p">;</span>
    <span class="n">lv_style_copy</span><span class="p">(</span><span class="o">&amp;</span><span class="n">label_style</span><span class="p">,</span> <span class="o">&amp;</span><span class="n">lv_style_plain</span><span class="p">);</span>
    <span class="n">label_style</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">opa</span> <span class="o">=</span> <span class="n">LV_OPA_50</span><span class="p">;</span>

    <span class="cm">/*Create a label for the shadow first (it&#39;s in the background) */</span>
    <span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">shadow_label</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_label_set_style</span><span class="p">(</span><span class="n">shadow_label</span><span class="p">,</span> <span class="n">LV_LABEL_STYLE_MAIN</span><span class="p">,</span> <span class="o">&amp;</span><span class="n">label_style</span><span class="p">);</span>

    <span class="cm">/* Create the main label */</span>
    <span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">main_label</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">main_label</span><span class="p">,</span> <span class="s">&quot;A simple method to create</span><span class="se">\n</span><span class="s">&quot;</span>
                                  <span class="s">&quot;shadows on text</span><span class="se">\n</span><span class="s">&quot;</span>
                                  <span class="s">&quot;It even works with</span><span class="se">\n\n</span><span class="s">&quot;</span>
                                  <span class="s">&quot;newlines     and spaces.&quot;</span><span class="p">);</span>

    <span class="cm">/*Set the same text for the shadow label*/</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">shadow_label</span><span class="p">,</span> <span class="n">lv_label_get_text</span><span class="p">(</span><span class="n">main_label</span><span class="p">));</span>

    <span class="cm">/* Position the main label */</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">main_label</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
    
    <span class="cm">/* Shift the second label down and to the right by 1 pixel */</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">shadow_label</span><span class="p">,</span> <span class="n">main_label</span><span class="p">,</span> <span class="n">LV_ALIGN_IN_TOP_LEFT</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="align-labels">
<h4>Align labels<a class="headerlink" href="#align-labels" title="Permalink to this headline">¶</a></h4>
<img alt="Align labels in LittlevGL" src="../_images/lv_ex_label_3.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;lvgl/lvgl.h&quot;</span><span class="cp"></span>

<span class="k">static</span> <span class="kt">void</span> <span class="nf">text_changer</span><span class="p">(</span><span class="n">lv_task_t</span> <span class="o">*</span> <span class="n">t</span><span class="p">);</span>

<span class="n">lv_obj_t</span> <span class="o">*</span> <span class="n">labels</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span>

<span class="cm">/**</span>
<span class="cm"> * Create three labels to demonstrate the alignments.</span>
<span class="cm"> */</span>
<span class="kt">void</span> <span class="nf">lv_ex_label_3</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
    <span class="cm">/*`lv_label_set_align` is not required to align the object itslef.</span>
<span class="cm">     * It&#39;s used only when the text has multiple lines*/</span>

    <span class="cm">/* Create a label on the top.</span>
<span class="cm">     * No additional alignment so it will be the reference*/</span>
    <span class="n">labels</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_IN_TOP_MID</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">5</span><span class="p">);</span>
    <span class="n">lv_label_set_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">LV_LABEL_ALIGN_CENTER</span><span class="p">);</span>

    <span class="cm">/* Create a label in the middle.</span>
<span class="cm">     * `lv_obj_align` will be called every time the text changes</span>
<span class="cm">     * to keep the middle position */</span>
    <span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
    <span class="n">lv_label_set_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">LV_LABEL_ALIGN_CENTER</span><span class="p">);</span>

    <span class="cm">/* Create a label in the bottom.</span>
<span class="cm">     * Enable auto realign. */</span>
    <span class="n">labels</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">=</span> <span class="n">lv_label_create</span><span class="p">(</span><span class="n">lv_scr_act</span><span class="p">(),</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_obj_set_auto_realign</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="nb">true</span><span class="p">);</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_IN_BOTTOM_MID</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">5</span><span class="p">);</span>
    <span class="n">lv_label_set_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">LV_LABEL_ALIGN_CENTER</span><span class="p">);</span>

    <span class="n">lv_task_t</span> <span class="o">*</span> <span class="n">t</span> <span class="o">=</span> <span class="n">lv_task_create</span><span class="p">(</span><span class="n">text_changer</span><span class="p">,</span> <span class="mi">1000</span><span class="p">,</span> <span class="n">LV_TASK_PRIO_MID</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">);</span>
    <span class="n">lv_task_ready</span><span class="p">(</span><span class="n">t</span><span class="p">);</span>
<span class="p">}</span>

<span class="k">static</span> <span class="kt">void</span> <span class="nf">text_changer</span><span class="p">(</span><span class="n">lv_task_t</span> <span class="o">*</span> <span class="n">t</span><span class="p">)</span>
<span class="p">{</span>
    <span class="k">const</span> <span class="kt">char</span> <span class="o">*</span> <span class="n">texts</span><span class="p">[]</span> <span class="o">=</span> <span class="p">{</span><span class="s">&quot;Text&quot;</span><span class="p">,</span> <span class="s">&quot;A very long text&quot;</span><span class="p">,</span> <span class="s">&quot;A text with</span><span class="se">\n</span><span class="s">multiple</span><span class="se">\n</span><span class="s">lines&quot;</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">};</span>
    <span class="k">static</span> <span class="kt">uint8_t</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>

    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">texts</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">texts</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
    <span class="n">lv_label_set_text</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">texts</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>

    <span class="cm">/*Manually realaign `labels[1]`*/</span>
    <span class="n">lv_obj_align</span><span class="p">(</span><span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">LV_ALIGN_CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>

    <span class="n">i</span><span class="o">++</span><span class="p">;</span>
    <span class="k">if</span><span class="p">(</span><span class="n">texts</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">==</span> <span class="nb">NULL</span><span class="p">)</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>

<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
</div>
<div class="section" id="micropython">
<h3>MicroPython<a class="headerlink" href="#micropython" title="Permalink to this headline">¶</a></h3>
<div class="section" id="id1">
<h4>Label recoloring and scrolling<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h4>
<img alt="Label example in LittlevGL with MicroPython" src="../_images/lv_ex_label_1.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">label1</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">label1</span><span class="o">.</span><span class="n">set_long_mode</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">LONG</span><span class="o">.</span><span class="n">BREAK</span><span class="p">)</span>     <span class="c1"># Break the long lines</span>
<span class="n">label1</span><span class="o">.</span><span class="n">set_recolor</span><span class="p">(</span><span class="bp">True</span><span class="p">)</span>                      <span class="c1"># Enable re-coloring by commands in the text</span>
<span class="n">label1</span><span class="o">.</span><span class="n">set_align</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">)</span>       <span class="c1"># Center aligned lines</span>
<span class="n">label1</span><span class="o">.</span><span class="n">set_text</span><span class="p">(</span><span class="s2">&quot;#000080 Re-color# #0000ff words# #6666ff of a# label &quot;</span> <span class="o">+</span>
                <span class="s2">&quot;and  wrap long text automatically.&quot;</span><span class="p">)</span>
<span class="n">label1</span><span class="o">.</span><span class="n">set_width</span><span class="p">(</span><span class="mi">150</span><span class="p">)</span>
<span class="n">label1</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">30</span><span class="p">)</span>

<span class="n">label2</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">label2</span><span class="o">.</span><span class="n">set_long_mode</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">LONG</span><span class="o">.</span><span class="n">SROLL_CIRC</span><span class="p">)</span>     <span class="c1"># Circular scroll</span>
<span class="n">label2</span><span class="o">.</span><span class="n">set_width</span><span class="p">(</span><span class="mi">150</span><span class="p">)</span>
<span class="n">label2</span><span class="o">.</span><span class="n">set_text</span><span class="p">(</span><span class="s2">&quot;It is a circularly scrolling text. &quot;</span><span class="p">)</span>
<span class="n">label2</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">30</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="id2">
<h4>Text shadow<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
<img alt="Label with shadow in LittlevGL with MicroPython" src="../_images/lv_ex_label_2.png" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Create a style for the shadow</span>
<span class="n">label_style</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">style_t</span><span class="p">()</span>
<span class="n">lv</span><span class="o">.</span><span class="n">style_copy</span><span class="p">(</span><span class="n">label_style</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">style_plain</span><span class="p">)</span>
<span class="n">label_style</span><span class="o">.</span><span class="n">text</span><span class="o">.</span><span class="n">opa</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">OPA</span><span class="o">.</span><span class="n">_50</span>

<span class="c1"># Create a label for the shadow first (it&#39;s in the background)</span>
<span class="n">shadow_label</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">shadow_label</span><span class="o">.</span><span class="n">set_style</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">STYLE</span><span class="o">.</span><span class="n">MAIN</span><span class="p">,</span> <span class="n">label_style</span><span class="p">)</span>

<span class="c1"># Create the main label</span>
<span class="n">main_label</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">main_label</span><span class="o">.</span><span class="n">set_text</span><span class="p">(</span><span class="s2">&quot;A simple method to create</span><span class="se">\n</span><span class="s2">&quot;</span> <span class="o">+</span>
                              <span class="s2">&quot;shadows on text</span><span class="se">\n</span><span class="s2">&quot;</span> <span class="o">+</span>
                              <span class="s2">&quot;It even works with</span><span class="se">\n\n</span><span class="s2">&quot;</span> <span class="o">+</span>
                              <span class="s2">&quot;newlines     and spaces.&quot;</span><span class="p">)</span>

<span class="c1"># Set the same text for the shadow label</span>
<span class="n">shadow_label</span><span class="o">.</span><span class="n">set_text</span><span class="p">(</span><span class="n">main_label</span><span class="o">.</span><span class="n">get_text</span><span class="p">())</span>

<span class="c1"># Position the main label</span>
<span class="n">main_label</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>

<span class="c1"># Shift the second label down and to the right by 1 pixel</span>
<span class="n">shadow_label</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="n">main_label</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">IN_TOP_LEFT</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="id3">
<h4>Align labels<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h4>
<img alt="Align labels in LittlevGL with MicroPython" src="../_images/lv_ex_label_3.gif" />
<div class="toggle docutils container">
<div class="header docutils container">
<p>code</p>
</div>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Create three labels to demonstrate the alignments.</span>
<span class="n">labels</span> <span class="o">=</span> <span class="p">[]</span>

<span class="c1"># `lv_label_set_align` is not required to align the object itslef.</span>
<span class="c1"># It&#39;s used only when the text has multiple lines</span>

<span class="c1"># Create a label on the top.</span>
<span class="c1"># No additional alignment so it will be the reference</span>
<span class="n">label</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">label</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">IN_TOP_MID</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span>
<span class="n">label</span><span class="o">.</span><span class="n">set_align</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">)</span>
<span class="n">labels</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">label</span><span class="p">)</span>

<span class="c1"># Create a label in the middle.</span>
<span class="c1"># `lv_obj_align` will be called every time the text changes</span>
<span class="c1"># to keep the middle position</span>
<span class="n">label</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">label</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
<span class="n">label</span><span class="o">.</span><span class="n">set_align</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">)</span>
<span class="n">labels</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">label</span><span class="p">)</span>

<span class="c1"># Create a label in the bottom.</span>
<span class="c1"># Enable auto realign.</span>
<span class="n">label</span> <span class="o">=</span> <span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">scr_act</span><span class="p">())</span>
<span class="n">label</span><span class="o">.</span><span class="n">set_auto_realign</span><span class="p">(</span><span class="bp">True</span><span class="p">)</span>
<span class="n">label</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">IN_BOTTOM_MID</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">label</span><span class="o">.</span><span class="n">set_align</span><span class="p">(</span><span class="n">lv</span><span class="o">.</span><span class="n">label</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">)</span>
<span class="n">labels</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">label</span><span class="p">)</span>

<span class="k">class</span> <span class="nc">TextChanger</span><span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;Changes texts of all labels every second&quot;&quot;&quot;</span>
    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">labels</span><span class="p">,</span> 
                <span class="n">texts</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;Text&quot;</span><span class="p">,</span> <span class="s2">&quot;A very long text&quot;</span><span class="p">,</span> <span class="s2">&quot;A text with</span><span class="se">\n</span><span class="s2">multiple</span><span class="se">\n</span><span class="s2">lines&quot;</span><span class="p">],</span>
                <span class="n">rate</span><span class="o">=</span><span class="mi">1000</span><span class="p">):</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">texts</span> <span class="o">=</span> <span class="n">texts</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">labels</span> <span class="o">=</span> <span class="n">labels</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">rate</span> <span class="o">=</span> <span class="n">rate</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">counter</span> <span class="o">=</span> <span class="mi">0</span>

    <span class="k">def</span> <span class="nf">start</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">lv</span><span class="o">.</span><span class="n">task_create</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">task_cb</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">rate</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">TASK_PRIO</span><span class="o">.</span><span class="n">LOWEST</span><span class="p">,</span> <span class="bp">None</span><span class="p">)</span>

    <span class="k">def</span> <span class="nf">task_cb</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">task</span><span class="p">):</span>
        <span class="k">for</span> <span class="n">label</span> <span class="ow">in</span> <span class="n">labels</span><span class="p">:</span>
            <span class="n">label</span><span class="o">.</span><span class="n">set_text</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">texts</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">counter</span><span class="p">])</span>

        <span class="c1"># Manually realaign `labels[1]`</span>
        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">labels</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">labels</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">align</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">lv</span><span class="o">.</span><span class="n">ALIGN</span><span class="o">.</span><span class="n">CENTER</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>

        <span class="bp">self</span><span class="o">.</span><span class="n">counter</span> <span class="o">=</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">counter</span> <span class="o">+</span> <span class="mi">1</span><span class="p">)</span> <span class="o">%</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">texts</span><span class="p">)</span>

<span class="n">text_changer</span> <span class="o">=</span> <span class="n">TextChanger</span><span class="p">(</span><span class="n">labels</span><span class="p">)</span>
<span class="n">text_changer</span><span class="o">.</span><span class="n">start</span><span class="p">()</span>
</pre></div>
</div>
</div>
</div>
</div>
</div>
<div class="section" id="api">
<h2>API<a class="headerlink" href="#api" title="Permalink to this headline">¶</a></h2>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Typedefs</p>
<dl class="cpp type">
<dt id="_CPPv420lv_label_long_mode_t">
<span id="_CPPv320lv_label_long_mode_t"></span><span id="_CPPv220lv_label_long_mode_t"></span><span id="lv_label_long_mode_t"></span><span class="target" id="lv__label_8h_1a775e9311d0f7e7842bb1224bb17219bb"></span><em class="property">typedef </em>uint8_t <code class="sig-name descname">lv_label_long_mode_t</code><a class="headerlink" href="#_CPPv420lv_label_long_mode_t" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp type">
<dt id="_CPPv416lv_label_align_t">
<span id="_CPPv316lv_label_align_t"></span><span id="_CPPv216lv_label_align_t"></span><span id="lv_label_align_t"></span><span class="target" id="lv__label_8h_1a4baaec4daf0f315743afcea82826e40b"></span><em class="property">typedef </em>uint8_t <code class="sig-name descname">lv_label_align_t</code><a class="headerlink" href="#_CPPv416lv_label_align_t" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp type">
<dt id="_CPPv416lv_label_style_t">
<span id="_CPPv316lv_label_style_t"></span><span id="_CPPv216lv_label_style_t"></span><span id="lv_label_style_t"></span><span class="target" id="lv__label_8h_1a61eb965b13f65b6b77d8c771164181e5"></span><em class="property">typedef </em>uint8_t <code class="sig-name descname">lv_label_style_t</code><a class="headerlink" href="#_CPPv416lv_label_style_t" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Enums</p>
<dl class="cpp enum">
<dt id="_CPPv4Ut2_67">
<span id="_CPPv3Ut2_67"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0"></span><em class="property">enum </em><strong>[anonymous]</strong><a class="headerlink" href="#_CPPv4Ut2_67" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Long mode behaviors. Used in ‘<a class="reference internal" href="#structlv__label__ext__t"><span class="std std-ref">lv_label_ext_t</span></a>’ </p>
<p><em>Values:</em></p>
<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6720LV_LABEL_LONG_EXPANDE">
<span id="_CPPv3NUt2_6720LV_LABEL_LONG_EXPANDE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0a7f108c76e373e47682c657c42e86be6f"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_EXPAND</code><a class="headerlink" href="#_CPPv4NUt2_6720LV_LABEL_LONG_EXPANDE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Expand the object size to the text size </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6719LV_LABEL_LONG_BREAKE">
<span id="_CPPv3NUt2_6719LV_LABEL_LONG_BREAKE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0a2b86465253a061213789957a822e00f7"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_BREAK</code><a class="headerlink" href="#_CPPv4NUt2_6719LV_LABEL_LONG_BREAKE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Keep the object width, break the too long lines and expand the object height </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6717LV_LABEL_LONG_DOTE">
<span id="_CPPv3NUt2_6717LV_LABEL_LONG_DOTE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0a6f48bf73ac5994e88d1d7e079ebfb941"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_DOT</code><a class="headerlink" href="#_CPPv4NUt2_6717LV_LABEL_LONG_DOTE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Keep the size and write dots at the end if the text is too long </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6719LV_LABEL_LONG_SROLLE">
<span id="_CPPv3NUt2_6719LV_LABEL_LONG_SROLLE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0a283143f9876ea3118495f861d9cb7071"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_SROLL</code><a class="headerlink" href="#_CPPv4NUt2_6719LV_LABEL_LONG_SROLLE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Keep the size and roll the text back and forth </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6724LV_LABEL_LONG_SROLL_CIRCE">
<span id="_CPPv3NUt2_6724LV_LABEL_LONG_SROLL_CIRCE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0ad2eb39c22c3e5abe890433376f5c6d2f"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_SROLL_CIRC</code><a class="headerlink" href="#_CPPv4NUt2_6724LV_LABEL_LONG_SROLL_CIRCE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Keep the size and roll the text circularly </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6718LV_LABEL_LONG_CROPE">
<span id="_CPPv3NUt2_6718LV_LABEL_LONG_CROPE"></span><span class="target" id="lv__label_8h_1a9e93d8eae633734dfeb29e24a1f3a7c0ab043224a310fe0e9c5d911dd5936c680"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_LONG_CROP</code><a class="headerlink" href="#_CPPv4NUt2_6718LV_LABEL_LONG_CROPE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Keep the size and crop the text out of it </p>
</dd></dl>

</dd></dl>

<dl class="cpp enum">
<dt id="_CPPv4Ut2_68">
<span id="_CPPv3Ut2_68"></span><span class="target" id="lv__label_8h_1aeb8e1c282570d629a6b603a94a4650d6"></span><em class="property">enum </em><strong>[anonymous]</strong><a class="headerlink" href="#_CPPv4Ut2_68" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Label align policy </p>
<p><em>Values:</em></p>
<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6819LV_LABEL_ALIGN_LEFTE">
<span id="_CPPv3NUt2_6819LV_LABEL_ALIGN_LEFTE"></span><span class="target" id="lv__label_8h_1aeb8e1c282570d629a6b603a94a4650d6ac0f5ffe6d5f53db54a297038ba53ab43"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_ALIGN_LEFT</code><a class="headerlink" href="#_CPPv4NUt2_6819LV_LABEL_ALIGN_LEFTE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Align text to left </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6821LV_LABEL_ALIGN_CENTERE">
<span id="_CPPv3NUt2_6821LV_LABEL_ALIGN_CENTERE"></span><span class="target" id="lv__label_8h_1aeb8e1c282570d629a6b603a94a4650d6a9b8ffbc9dd19549a71a82853c1dd542b"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_ALIGN_CENTER</code><a class="headerlink" href="#_CPPv4NUt2_6821LV_LABEL_ALIGN_CENTERE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Align text to center </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6820LV_LABEL_ALIGN_RIGHTE">
<span id="_CPPv3NUt2_6820LV_LABEL_ALIGN_RIGHTE"></span><span class="target" id="lv__label_8h_1aeb8e1c282570d629a6b603a94a4650d6a278263031d207deb8ac90f233c909f66"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_ALIGN_RIGHT</code><a class="headerlink" href="#_CPPv4NUt2_6820LV_LABEL_ALIGN_RIGHTE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Align text to right </p>
</dd></dl>

<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6819LV_LABEL_ALIGN_AUTOE">
<span id="_CPPv3NUt2_6819LV_LABEL_ALIGN_AUTOE"></span><span class="target" id="lv__label_8h_1aeb8e1c282570d629a6b603a94a4650d6aec27c82369eaf8bc200f71031863c449"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_ALIGN_AUTO</code><a class="headerlink" href="#_CPPv4NUt2_6819LV_LABEL_ALIGN_AUTOE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Use LEFT or RIGHT depending on the direction of the text (LTR/RTL) </p>
</dd></dl>

</dd></dl>

<dl class="cpp enum">
<dt id="_CPPv4Ut2_69">
<span id="_CPPv3Ut2_69"></span><span class="target" id="lv__label_8h_1a109bfaad92bd6d348dab484aec11edbb"></span><em class="property">enum </em><strong>[anonymous]</strong><a class="headerlink" href="#_CPPv4Ut2_69" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Label styles </p>
<p><em>Values:</em></p>
<dl class="cpp enumerator">
<dt id="_CPPv4NUt2_6919LV_LABEL_STYLE_MAINE">
<span id="_CPPv3NUt2_6919LV_LABEL_STYLE_MAINE"></span><span class="target" id="lv__label_8h_1a109bfaad92bd6d348dab484aec11edbbad08c760aab4b456a36e411009e44892f"></span><em class="property">enumerator </em><code class="sig-name descname">LV_LABEL_STYLE_MAIN</code><a class="headerlink" href="#_CPPv4NUt2_6919LV_LABEL_STYLE_MAINE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

</dd></dl>

</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Functions</p>
<dl class="cpp function">
<dt id="_CPPv419LV_EXPORT_CONST_INT16LV_LABEL_DOT_NUM">
<span id="_CPPv319LV_EXPORT_CONST_INT16LV_LABEL_DOT_NUM"></span><span id="_CPPv219LV_EXPORT_CONST_INT16LV_LABEL_DOT_NUM"></span><span id="LV_EXPORT_CONST_INT__LV_LABEL_DOT_NUM"></span><span class="target" id="lv__label_8h_1a78a19740299e6c2f43a2964adae18335"></span><code class="sig-name descname">LV_EXPORT_CONST_INT</code><span class="sig-paren">(</span>LV_LABEL_DOT_NUM<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419LV_EXPORT_CONST_INT16LV_LABEL_DOT_NUM" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt id="_CPPv419LV_EXPORT_CONST_INT17LV_LABEL_POS_LAST">
<span id="_CPPv319LV_EXPORT_CONST_INT17LV_LABEL_POS_LAST"></span><span id="_CPPv219LV_EXPORT_CONST_INT17LV_LABEL_POS_LAST"></span><span id="LV_EXPORT_CONST_INT__LV_LABEL_POS_LAST"></span><span class="target" id="lv__label_8h_1a8d895273757f2e10acfa6f7dc9ac5fb9"></span><code class="sig-name descname">LV_EXPORT_CONST_INT</code><span class="sig-paren">(</span>LV_LABEL_POS_LAST<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419LV_EXPORT_CONST_INT17LV_LABEL_POS_LAST" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt id="_CPPv419LV_EXPORT_CONST_INT21LV_LABEL_TEXT_SEL_OFF">
<span id="_CPPv319LV_EXPORT_CONST_INT21LV_LABEL_TEXT_SEL_OFF"></span><span id="_CPPv219LV_EXPORT_CONST_INT21LV_LABEL_TEXT_SEL_OFF"></span><span id="LV_EXPORT_CONST_INT__LV_LABEL_TEXT_SEL_OFF"></span><span class="target" id="lv__label_8h_1a7c83abc65e78dc074cdc6fc53b58fbb9"></span><code class="sig-name descname">LV_EXPORT_CONST_INT</code><span class="sig-paren">(</span>LV_LABEL_TEXT_SEL_OFF<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419LV_EXPORT_CONST_INT21LV_LABEL_TEXT_SEL_OFF" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp function">
<dt id="_CPPv415lv_label_createP8lv_obj_tPK8lv_obj_t">
<span id="_CPPv315lv_label_createP8lv_obj_tPK8lv_obj_t"></span><span id="_CPPv215lv_label_createP8lv_obj_tPK8lv_obj_t"></span><span id="lv_label_create__lv_obj_tP.lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a2b0495e548a80be73cace1d289b84bf6"></span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<code class="sig-name descname">lv_label_create</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>par</em>, <em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>copy</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415lv_label_createP8lv_obj_tPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Create a label objects <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>pointer to the created button </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">par</span></code>: pointer to an object, it will be the parent of the new label </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">copy</span></code>: pointer to a button object, if not NULL then the new object will be copied from it </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv417lv_label_set_textP8lv_obj_tPKc">
<span id="_CPPv317lv_label_set_textP8lv_obj_tPKc"></span><span id="_CPPv217lv_label_set_textP8lv_obj_tPKc"></span><span id="lv_label_set_text__lv_obj_tP.cCP"></span><span class="target" id="lv__label_8h_1a456941e70397c2a92febeb5cf0a8b72f"></span>void <code class="sig-name descname">lv_label_set_text</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <em class="property">const</em> char *<em>text</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417lv_label_set_textP8lv_obj_tPKc" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set a new text for a label. Memory will be allocated to store the text by the label. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">text</span></code>: ‘\0’ terminated character string. NULL to refresh with the current text. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv421lv_label_set_text_fmtP8lv_obj_tPKcz">
<span id="_CPPv321lv_label_set_text_fmtP8lv_obj_tPKcz"></span><span id="_CPPv221lv_label_set_text_fmtP8lv_obj_tPKcz"></span><span id="lv_label_set_text_fmt__lv_obj_tP.cCP.z"></span><span class="target" id="lv__label_8h_1a0c561c274222cc09a62e7a16d95c37ba"></span>void <code class="sig-name descname">lv_label_set_text_fmt</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <em class="property">const</em> char *<em>fmt</em>, ...<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421lv_label_set_text_fmtP8lv_obj_tPKcz" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set a new formatted text for a label. Memory will be allocated to store the text by the label. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">fmt</span></code>: <code class="docutils literal notranslate"><span class="pre">printf</span></code>-like format </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv423lv_label_set_array_textP8lv_obj_tPKc8uint16_t">
<span id="_CPPv323lv_label_set_array_textP8lv_obj_tPKc8uint16_t"></span><span id="_CPPv223lv_label_set_array_textP8lv_obj_tPKc8uint16_t"></span><span id="lv_label_set_array_text__lv_obj_tP.cCP.uint16_t"></span><span class="target" id="lv__label_8h_1a6b164d72bbdee7c2405c4a372518c128"></span>void <code class="sig-name descname">lv_label_set_array_text</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <em class="property">const</em> char *<em>array</em>, uint16_t <em>size</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423lv_label_set_array_textP8lv_obj_tPKc8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set a new text for a label from a character array. The array don’t has to be ‘\0’ terminated. Memory will be allocated to store the array by the label. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">array</span></code>: array of characters or NULL to refresh the label </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">size</span></code>: the size of ‘array’ in bytes </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv424lv_label_set_static_textP8lv_obj_tPKc">
<span id="_CPPv324lv_label_set_static_textP8lv_obj_tPKc"></span><span id="_CPPv224lv_label_set_static_textP8lv_obj_tPKc"></span><span id="lv_label_set_static_text__lv_obj_tP.cCP"></span><span class="target" id="lv__label_8h_1a65ff22e040dc00cc7899b7b123c8cd2c"></span>void <code class="sig-name descname">lv_label_set_static_text</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <em class="property">const</em> char *<em>text</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424lv_label_set_static_textP8lv_obj_tPKc" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set a static text. It will not be saved by the label so the ‘text’ variable has to be ‘alive’ while the label exist. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">text</span></code>: pointer to a text. NULL to refresh with the current text. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv422lv_label_set_long_modeP8lv_obj_t20lv_label_long_mode_t">
<span id="_CPPv322lv_label_set_long_modeP8lv_obj_t20lv_label_long_mode_t"></span><span id="_CPPv222lv_label_set_long_modeP8lv_obj_t20lv_label_long_mode_t"></span><span id="lv_label_set_long_mode__lv_obj_tP.lv_label_long_mode_t"></span><span class="target" id="lv__label_8h_1aae3e66fb17faa4335d2e7b69c98cf65a"></span>void <code class="sig-name descname">lv_label_set_long_mode</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <a class="reference internal" href="#_CPPv420lv_label_long_mode_t" title="lv_label_long_mode_t">lv_label_long_mode_t</a> <em>long_mode</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422lv_label_set_long_modeP8lv_obj_t20lv_label_long_mode_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the behavior of the label with longer text then the object size <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">long_mode</span></code>: the new mode from ‘lv_label_long_mode’ enum. In LV_LONG_BREAK/LONG/ROLL the size of the label should be set AFTER this function </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv418lv_label_set_alignP8lv_obj_t16lv_label_align_t">
<span id="_CPPv318lv_label_set_alignP8lv_obj_t16lv_label_align_t"></span><span id="_CPPv218lv_label_set_alignP8lv_obj_t16lv_label_align_t"></span><span id="lv_label_set_align__lv_obj_tP.lv_label_align_t"></span><span class="target" id="lv__label_8h_1ad18c05d2382e60f1a803cd5127bb0521"></span>void <code class="sig-name descname">lv_label_set_align</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <a class="reference internal" href="#_CPPv416lv_label_align_t" title="lv_label_align_t">lv_label_align_t</a> <em>align</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418lv_label_set_alignP8lv_obj_t16lv_label_align_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the align of the label (left or center) <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">align</span></code>: ‘LV_LABEL_ALIGN_LEFT’ or ‘LV_LABEL_ALIGN_LEFT’ </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv420lv_label_set_recolorP8lv_obj_tb">
<span id="_CPPv320lv_label_set_recolorP8lv_obj_tb"></span><span id="_CPPv220lv_label_set_recolorP8lv_obj_tb"></span><span id="lv_label_set_recolor__lv_obj_tP.b"></span><span class="target" id="lv__label_8h_1a12fde38da447fb4f389618a7e7c7ea44"></span>void <code class="sig-name descname">lv_label_set_recolor</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, bool <em>en</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420lv_label_set_recolorP8lv_obj_tb" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Enable the recoloring by in-line commands <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">en</span></code>: true: enable recoloring, false: disable </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv422lv_label_set_body_drawP8lv_obj_tb">
<span id="_CPPv322lv_label_set_body_drawP8lv_obj_tb"></span><span id="_CPPv222lv_label_set_body_drawP8lv_obj_tb"></span><span id="lv_label_set_body_draw__lv_obj_tP.b"></span><span class="target" id="lv__label_8h_1ae46e5c3c4f80abacbaa954faf9ce6b63"></span>void <code class="sig-name descname">lv_label_set_body_draw</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, bool <em>en</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422lv_label_set_body_drawP8lv_obj_tb" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the label to draw (or not draw) background specified in its style’s body <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">en</span></code>: true: draw body; false: don’t draw body </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv423lv_label_set_anim_speedP8lv_obj_t8uint16_t">
<span id="_CPPv323lv_label_set_anim_speedP8lv_obj_t8uint16_t"></span><span id="_CPPv223lv_label_set_anim_speedP8lv_obj_t8uint16_t"></span><span id="lv_label_set_anim_speed__lv_obj_tP.uint16_t"></span><span class="target" id="lv__label_8h_1aaed7699ed8b72d951fbef98a8022a04e"></span>void <code class="sig-name descname">lv_label_set_anim_speed</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint16_t <em>anim_speed</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423lv_label_set_anim_speedP8lv_obj_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the label’s animation speed in LV_LABEL_LONG_SROLL/SCROLL_CIRC modes <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">anim_speed</span></code>: speed of animation in px/sec unit </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv418lv_label_set_styleP8lv_obj_t16lv_label_style_tPK10lv_style_t">
<span id="_CPPv318lv_label_set_styleP8lv_obj_t16lv_label_style_tPK10lv_style_t"></span><span id="_CPPv218lv_label_set_styleP8lv_obj_t16lv_label_style_tPK10lv_style_t"></span><span id="lv_label_set_style__lv_obj_tP.lv_label_style_t.lv_style_tCP"></span><span class="target" id="lv__label_8h_1a3fa70bf4c31f24aba50a0b501e2f43e3"></span>void <code class="sig-name descname">lv_label_set_style</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <a class="reference internal" href="#_CPPv416lv_label_style_t" title="lv_label_style_t">lv_label_style_t</a> <em>type</em>, <em class="property">const</em> lv_style_t *<em>style</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418lv_label_set_styleP8lv_obj_t16lv_label_style_tPK10lv_style_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the style of an label <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to an label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">type</span></code>: which style should be get (can be only <code class="docutils literal notranslate"><span class="pre">LV_LABEL_STYLE_MAIN</span></code>) </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">style</span></code>: pointer to a style </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv427lv_label_set_text_sel_startP8lv_obj_t8uint16_t">
<span id="_CPPv327lv_label_set_text_sel_startP8lv_obj_t8uint16_t"></span><span id="_CPPv227lv_label_set_text_sel_startP8lv_obj_t8uint16_t"></span><span id="lv_label_set_text_sel_start__lv_obj_tP.uint16_t"></span><span class="target" id="lv__label_8h_1a95f40d8ac6f2cedac8d646311c5acf59"></span>void <code class="sig-name descname">lv_label_set_text_sel_start</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint16_t <em>index</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427lv_label_set_text_sel_startP8lv_obj_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the selection start index. </p>
<p><dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object. </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">index</span></code>: index to set. <code class="docutils literal notranslate"><span class="pre">LV_LABEL_TXT_SEL_OFF</span></code> to select nothing. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv425lv_label_set_text_sel_endP8lv_obj_t8uint16_t">
<span id="_CPPv325lv_label_set_text_sel_endP8lv_obj_t8uint16_t"></span><span id="_CPPv225lv_label_set_text_sel_endP8lv_obj_t8uint16_t"></span><span id="lv_label_set_text_sel_end__lv_obj_tP.uint16_t"></span><span class="target" id="lv__label_8h_1ab123d5bfda38ab4c5607a7179fe963b5"></span>void <code class="sig-name descname">lv_label_set_text_sel_end</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint16_t <em>index</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425lv_label_set_text_sel_endP8lv_obj_t8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Set the selection end index. </p>
<p><dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object. </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">index</span></code>: index to set. <code class="docutils literal notranslate"><span class="pre">LV_LABEL_TXT_SEL_OFF</span></code> to select nothing. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv417lv_label_get_textPK8lv_obj_t">
<span id="_CPPv317lv_label_get_textPK8lv_obj_t"></span><span id="_CPPv217lv_label_get_textPK8lv_obj_t"></span><span id="lv_label_get_text__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1ab008e41ded85a6c68b0283a36793726c"></span>char *<code class="sig-name descname">lv_label_get_text</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417lv_label_get_textPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the text of a label <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>the text of the label </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv422lv_label_get_long_modePK8lv_obj_t">
<span id="_CPPv322lv_label_get_long_modePK8lv_obj_t"></span><span id="_CPPv222lv_label_get_long_modePK8lv_obj_t"></span><span id="lv_label_get_long_mode__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a0f7b9d7044bc148d02765d6d4a15fa3c"></span><a class="reference internal" href="#_CPPv420lv_label_long_mode_t" title="lv_label_long_mode_t">lv_label_long_mode_t</a> <code class="sig-name descname">lv_label_get_long_mode</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422lv_label_get_long_modePK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the long mode of a label <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>the long mode </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv418lv_label_get_alignPK8lv_obj_t">
<span id="_CPPv318lv_label_get_alignPK8lv_obj_t"></span><span id="_CPPv218lv_label_get_alignPK8lv_obj_t"></span><span id="lv_label_get_align__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a173924f26e3904c0f74c5d7e1b224b6f"></span><a class="reference internal" href="#_CPPv416lv_label_align_t" title="lv_label_align_t">lv_label_align_t</a> <code class="sig-name descname">lv_label_get_align</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418lv_label_get_alignPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the align attribute <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>LV_LABEL_ALIGN_LEFT or LV_LABEL_ALIGN_CENTER </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv420lv_label_get_recolorPK8lv_obj_t">
<span id="_CPPv320lv_label_get_recolorPK8lv_obj_t"></span><span id="_CPPv220lv_label_get_recolorPK8lv_obj_t"></span><span id="lv_label_get_recolor__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a4756d8b3789cd99d3f96ab5b87497b5a"></span>bool <code class="sig-name descname">lv_label_get_recolor</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420lv_label_get_recolorPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the recoloring attribute <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>true: recoloring is enabled, false: disable </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv422lv_label_get_body_drawPK8lv_obj_t">
<span id="_CPPv322lv_label_get_body_drawPK8lv_obj_t"></span><span id="_CPPv222lv_label_get_body_drawPK8lv_obj_t"></span><span id="lv_label_get_body_draw__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1ae8c9c379e4593910cb149bb0d46a4efd"></span>bool <code class="sig-name descname">lv_label_get_body_draw</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422lv_label_get_body_drawPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the body draw attribute <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>true: draw body; false: don’t draw body </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv423lv_label_get_anim_speedPK8lv_obj_t">
<span id="_CPPv323lv_label_get_anim_speedPK8lv_obj_t"></span><span id="_CPPv223lv_label_get_anim_speedPK8lv_obj_t"></span><span id="lv_label_get_anim_speed__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a844c6d4f62ec79205b71a543432b7767"></span>uint16_t <code class="sig-name descname">lv_label_get_anim_speed</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423lv_label_get_anim_speedPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the label’s animation speed in LV_LABEL_LONG_ROLL and SCROLL modes <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>speed of animation in px/sec unit </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv423lv_label_get_letter_posPK8lv_obj_t8uint16_tP10lv_point_t">
<span id="_CPPv323lv_label_get_letter_posPK8lv_obj_t8uint16_tP10lv_point_t"></span><span id="_CPPv223lv_label_get_letter_posPK8lv_obj_t8uint16_tP10lv_point_t"></span><span id="lv_label_get_letter_pos__lv_obj_tCP.uint16_t.lv_point_tP"></span><span class="target" id="lv__label_8h_1a0b63169e29524ccca7354cd7fb9abad7"></span>void <code class="sig-name descname">lv_label_get_letter_pos</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint16_t <em>index</em>, lv_point_t *<em>pos</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423lv_label_get_letter_posPK8lv_obj_t8uint16_tP10lv_point_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the relative x and y coordinates of a letter <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">index</span></code>: index of the letter [0 … text length]. Expressed in character index, not byte index (different in UTF-8) </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">pos</span></code>: store the result here (E.g. index = 0 gives 0;0 coordinates) </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv422lv_label_get_letter_onPK8lv_obj_tP10lv_point_t">
<span id="_CPPv322lv_label_get_letter_onPK8lv_obj_tP10lv_point_t"></span><span id="_CPPv222lv_label_get_letter_onPK8lv_obj_tP10lv_point_t"></span><span id="lv_label_get_letter_on__lv_obj_tCP.lv_point_tP"></span><span class="target" id="lv__label_8h_1a3f9b31ecb0d1c1fec835bb9f2d6c6f5e"></span>uint16_t <code class="sig-name descname">lv_label_get_letter_on</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, lv_point_t *<em>pos</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422lv_label_get_letter_onPK8lv_obj_tP10lv_point_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the index of letter on a relative point of a label <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>the index of the letter on the ‘pos_p’ point (E.g. on 0;0 is the 0. letter) Expressed in character index and not byte index (different in UTF-8) </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">pos</span></code>: pointer to point with coordinates on a the label </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv426lv_label_is_char_under_posPK8lv_obj_tP10lv_point_t">
<span id="_CPPv326lv_label_is_char_under_posPK8lv_obj_tP10lv_point_t"></span><span id="_CPPv226lv_label_is_char_under_posPK8lv_obj_tP10lv_point_t"></span><span id="lv_label_is_char_under_pos__lv_obj_tCP.lv_point_tP"></span><span class="target" id="lv__label_8h_1ab8f7df8121e7e8d208b593f71dac44ae"></span>bool <code class="sig-name descname">lv_label_is_char_under_pos</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, lv_point_t *<em>pos</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426lv_label_is_char_under_posPK8lv_obj_tP10lv_point_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Check if a character is drawn under a point. <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>whether a character is drawn under the point </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: Label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">pos</span></code>: Point to check for characte under </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv418lv_label_get_stylePK8lv_obj_t16lv_label_style_t">
<span id="_CPPv318lv_label_get_stylePK8lv_obj_t16lv_label_style_t"></span><span id="_CPPv218lv_label_get_stylePK8lv_obj_t16lv_label_style_t"></span><span id="lv_label_get_style__lv_obj_tCP.lv_label_style_t"></span><span class="target" id="lv__label_8h_1a4cad7ff9885107137ee5b0c2ecb7711d"></span><em class="property">const</em> lv_style_t *<code class="sig-name descname">lv_label_get_style</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, <a class="reference internal" href="#_CPPv416lv_label_style_t" title="lv_label_style_t">lv_label_style_t</a> <em>type</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418lv_label_get_stylePK8lv_obj_t16lv_label_style_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the style of an label object <dl class="simple">
<dt><strong>Return</strong></dt><dd><p>pointer to the label’s style </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to an label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">type</span></code>: which style should be get (can be only <code class="docutils literal notranslate"><span class="pre">LV_LABEL_STYLE_MAIN</span></code>) </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv427lv_label_get_text_sel_startPK8lv_obj_t">
<span id="_CPPv327lv_label_get_text_sel_startPK8lv_obj_t"></span><span id="_CPPv227lv_label_get_text_sel_startPK8lv_obj_t"></span><span id="lv_label_get_text_sel_start__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1aa7e4bbdcc5c129d459f10b7dd931437e"></span>uint16_t <code class="sig-name descname">lv_label_get_text_sel_start</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427lv_label_get_text_sel_startPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the selection start index. </p>
<p><dl class="simple">
<dt><strong>Return</strong></dt><dd><p>selection start index. <code class="docutils literal notranslate"><span class="pre">LV_LABEL_TXT_SEL_OFF</span></code> if nothing is selected. </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv425lv_label_get_text_sel_endPK8lv_obj_t">
<span id="_CPPv325lv_label_get_text_sel_endPK8lv_obj_t"></span><span id="_CPPv225lv_label_get_text_sel_endPK8lv_obj_t"></span><span id="lv_label_get_text_sel_end__lv_obj_tCP"></span><span class="target" id="lv__label_8h_1a6d55557a89a75e4dc7c17e85040e583c"></span>uint16_t <code class="sig-name descname">lv_label_get_text_sel_end</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425lv_label_get_text_sel_endPK8lv_obj_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the selection end index. </p>
<p><dl class="simple">
<dt><strong>Return</strong></dt><dd><p>selection end index. <code class="docutils literal notranslate"><span class="pre">LV_LABEL_TXT_SEL_OFF</span></code> if nothing is selected. </p>
</dd>
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object. </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv417lv_label_ins_textP8lv_obj_t8uint32_tPKc">
<span id="_CPPv317lv_label_ins_textP8lv_obj_t8uint32_tPKc"></span><span id="_CPPv217lv_label_ins_textP8lv_obj_t8uint32_tPKc"></span><span id="lv_label_ins_text__lv_obj_tP.uint32_t.cCP"></span><span class="target" id="lv__label_8h_1a049ff2aec52d97870d277115cb81e2f6"></span>void <code class="sig-name descname">lv_label_ins_text</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint32_t <em>pos</em>, <em class="property">const</em> char *<em>txt</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417lv_label_ins_textP8lv_obj_t8uint32_tPKc" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Insert a text to the label. The label text can not be static. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">pos</span></code>: character index to insert. Expressed in character index and not byte index (Different in UTF-8) 0: before first char. LV_LABEL_POS_LAST: after last char. </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">txt</span></code>: pointer to the text to insert </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv417lv_label_cut_textP8lv_obj_t8uint32_t8uint32_t">
<span id="_CPPv317lv_label_cut_textP8lv_obj_t8uint32_t8uint32_t"></span><span id="_CPPv217lv_label_cut_textP8lv_obj_t8uint32_t8uint32_t"></span><span id="lv_label_cut_text__lv_obj_tP.uint32_t.uint32_t"></span><span class="target" id="lv__label_8h_1a025c7cb21651112eeeea76682a3164fc"></span>void <code class="sig-name descname">lv_label_cut_text</code><span class="sig-paren">(</span><a class="reference internal" href="obj.html#_CPPv48lv_obj_t" title="lv_obj_t">lv_obj_t</a> *<em>label</em>, uint32_t <em>pos</em>, uint32_t <em>cnt</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417lv_label_cut_textP8lv_obj_t8uint32_t8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Delete characters from a label. The label text can not be static. <dl class="simple">
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
<li><p><code class="docutils literal notranslate"><span class="pre">label</span></code>: pointer to a label object </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">pos</span></code>: character index to insert. Expressed in character index and not byte index (Different in UTF-8) 0: before first char. </p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">cnt</span></code>: number of characters to cut </p></li>
</ul>
</dd>
</dl>
</p>
</dd></dl>

</div>
<dl class="cpp struct">
<dt id="_CPPv414lv_label_ext_t">
<span id="_CPPv314lv_label_ext_t"></span><span id="_CPPv214lv_label_ext_t"></span><span id="lv_label_ext_t"></span><span class="target" id="structlv__label__ext__t"></span><em class="property">struct </em><code class="sig-name descname">lv_label_ext_t</code><a class="headerlink" href="#_CPPv414lv_label_ext_t" title="Permalink to this definition">¶</a><br /></dt>
<dd><em>#include &lt;lv_label.h&gt;</em><p>Data of label </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Public Members</p>
<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t4textE">
<span id="_CPPv3N14lv_label_ext_t4textE"></span><span id="_CPPv2N14lv_label_ext_t4textE"></span><span id="lv_label_ext_t::text__cP"></span><span class="target" id="structlv__label__ext__t_1a090f378c57c04228970f3daac6011a5c"></span>char *<code class="sig-name descname">text</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t4textE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t7tmp_ptrE">
<span id="_CPPv3N14lv_label_ext_t7tmp_ptrE"></span><span id="_CPPv2N14lv_label_ext_t7tmp_ptrE"></span><span id="lv_label_ext_t::tmp_ptr__cP"></span><span class="target" id="structlv__label__ext__t_1a9a1a007f2ce8fd657a41f94d196ef65b"></span>char *<code class="sig-name descname">tmp_ptr</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t7tmp_ptrE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t3tmpE">
<span id="_CPPv3N14lv_label_ext_t3tmpE"></span><span id="_CPPv2N14lv_label_ext_t3tmpE"></span><span id="lv_label_ext_t::tmp__cA"></span><span class="target" id="structlv__label__ext__t_1a5c4a2a04f1ff896070f758ca3a836fe0"></span>char <code class="sig-name descname">tmp</code>[<code class="sig-name descname">LV_LABEL_DOT_NUM</code> + 1]<a class="headerlink" href="#_CPPv4N14lv_label_ext_t3tmpE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t3dotE">
<span id="_CPPv3N14lv_label_ext_t3dotE"></span><span id="_CPPv2N14lv_label_ext_t3dotE"></span><span class="target" id="structlv__label__ext__t_1a89dbc0bef9db477e3c27d98a8f564b78"></span><em class="property">union</em> <a class="reference internal" href="#_CPPv414lv_label_ext_t" title="lv_label_ext_t">lv_label_ext_t</a>::<strong>[anonymous]</strong> <code class="sig-name descname">dot</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t3dotE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t7dot_endE">
<span id="_CPPv3N14lv_label_ext_t7dot_endE"></span><span id="_CPPv2N14lv_label_ext_t7dot_endE"></span><span id="lv_label_ext_t::dot_end__uint16_t"></span><span class="target" id="structlv__label__ext__t_1a39bab5335e324868d44993fdc7c6c4b1"></span>uint16_t <code class="sig-name descname">dot_end</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t7dot_endE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t6offsetE">
<span id="_CPPv3N14lv_label_ext_t6offsetE"></span><span id="_CPPv2N14lv_label_ext_t6offsetE"></span><span id="lv_label_ext_t::offset__lv_point_t"></span><span class="target" id="structlv__label__ext__t_1aa6e0f432e906d10001240af0e71b6ee8"></span>lv_point_t <code class="sig-name descname">offset</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t6offsetE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t4hintE">
<span id="_CPPv3N14lv_label_ext_t4hintE"></span><span id="_CPPv2N14lv_label_ext_t4hintE"></span><span id="lv_label_ext_t::hint__lv_draw_label_hint_t"></span><span class="target" id="structlv__label__ext__t_1a59d451805ebff816d74168098619b165"></span>lv_draw_label_hint_t <code class="sig-name descname">hint</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t4hintE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t10anim_speedE">
<span id="_CPPv3N14lv_label_ext_t10anim_speedE"></span><span id="_CPPv2N14lv_label_ext_t10anim_speedE"></span><span id="lv_label_ext_t::anim_speed__uint16_t"></span><span class="target" id="structlv__label__ext__t_1aaf29593986b64b9b7c379b64efc13fc2"></span>uint16_t <code class="sig-name descname">anim_speed</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t10anim_speedE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t13txt_sel_startE">
<span id="_CPPv3N14lv_label_ext_t13txt_sel_startE"></span><span id="_CPPv2N14lv_label_ext_t13txt_sel_startE"></span><span id="lv_label_ext_t::txt_sel_start__uint16_t"></span><span class="target" id="structlv__label__ext__t_1aa1dc8ebe9b73b3ef6729ff54632317d7"></span>uint16_t <code class="sig-name descname">txt_sel_start</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t13txt_sel_startE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t11txt_sel_endE">
<span id="_CPPv3N14lv_label_ext_t11txt_sel_endE"></span><span id="_CPPv2N14lv_label_ext_t11txt_sel_endE"></span><span id="lv_label_ext_t::txt_sel_end__uint16_t"></span><span class="target" id="structlv__label__ext__t_1a0b6e6942038b68ad242ec26f0f6e556e"></span>uint16_t <code class="sig-name descname">txt_sel_end</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t11txt_sel_endE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t9long_modeE">
<span id="_CPPv3N14lv_label_ext_t9long_modeE"></span><span id="_CPPv2N14lv_label_ext_t9long_modeE"></span><span id="lv_label_ext_t::long_mode__lv_label_long_mode_t"></span><span class="target" id="structlv__label__ext__t_1a1bc78375e2ae78a317372e943cfb1f9f"></span><a class="reference internal" href="#_CPPv420lv_label_long_mode_t" title="lv_label_long_mode_t">lv_label_long_mode_t</a> <code class="sig-name descname">long_mode</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t9long_modeE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t10static_txtE">
<span id="_CPPv3N14lv_label_ext_t10static_txtE"></span><span id="_CPPv2N14lv_label_ext_t10static_txtE"></span><span id="lv_label_ext_t::static_txt__uint8_t"></span><span class="target" id="structlv__label__ext__t_1a5085207a047a7c3318078346588b19ab"></span>uint8_t <code class="sig-name descname">static_txt</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t10static_txtE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t5alignE">
<span id="_CPPv3N14lv_label_ext_t5alignE"></span><span id="_CPPv2N14lv_label_ext_t5alignE"></span><span id="lv_label_ext_t::align__uint8_t"></span><span class="target" id="structlv__label__ext__t_1a05431ba665f7bc3817e957986d9b8dfa"></span>uint8_t <code class="sig-name descname">align</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t5alignE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t7recolorE">
<span id="_CPPv3N14lv_label_ext_t7recolorE"></span><span id="_CPPv2N14lv_label_ext_t7recolorE"></span><span id="lv_label_ext_t::recolor__uint8_t"></span><span class="target" id="structlv__label__ext__t_1a664da74d9ad7d4f762256368bfe2ef88"></span>uint8_t <code class="sig-name descname">recolor</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t7recolorE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t6expandE">
<span id="_CPPv3N14lv_label_ext_t6expandE"></span><span id="_CPPv2N14lv_label_ext_t6expandE"></span><span id="lv_label_ext_t::expand__uint8_t"></span><span class="target" id="structlv__label__ext__t_1a4c069f867139d3567f5621743e3a6150"></span>uint8_t <code class="sig-name descname">expand</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t6expandE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t9body_drawE">
<span id="_CPPv3N14lv_label_ext_t9body_drawE"></span><span id="_CPPv2N14lv_label_ext_t9body_drawE"></span><span id="lv_label_ext_t::body_draw__uint8_t"></span><span class="target" id="structlv__label__ext__t_1aa72fae1c6d334602c944bf1f666a4c58"></span>uint8_t <code class="sig-name descname">body_draw</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t9body_drawE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N14lv_label_ext_t13dot_tmp_allocE">
<span id="_CPPv3N14lv_label_ext_t13dot_tmp_allocE"></span><span id="_CPPv2N14lv_label_ext_t13dot_tmp_allocE"></span><span id="lv_label_ext_t::dot_tmp_alloc__uint8_t"></span><span class="target" id="structlv__label__ext__t_1af5f3f390793d4b2e3d12a446cdba518d"></span>uint8_t <code class="sig-name descname">dot_tmp_alloc</code><a class="headerlink" href="#_CPPv4N14lv_label_ext_t13dot_tmp_allocE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

</div>
</dd></dl>

</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="led.html" class="btn btn-neutral float-right" title="LED (lv_led)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="kb.html" class="btn btn-neutral float-left" title="Keyboard (lv_kb)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2020, Gabor Kiss-Vamosi
      <span class="lastupdated">
        Last updated on Nov 21, 2020.
      </span>

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
  

 <script type="text/javascript">
    $(document).ready(function() {
        $(".toggle > *").hide();
        $(".toggle .header").show();
        $(".toggle .header").click(function() {
            $(this).parent().children().not(".header").toggle(400);
            $(this).parent().children(".header").toggleClass("open");
        })
    });
</script>


<script type="text/javascript" src="https://docs.lvgl.io/misc/common.js"></script>



</body>
</html>